package com.homework.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalTime;

@Data
@TableName("class_schedule")
public class ClassSchedule {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("student_id")
    private Long studentId;

    @TableField("day_of_week")
    private Integer dayOfWeek; // 1-5, 周一到周五

    @TableField("session_order")
    private Integer sessionOrder; // 1-8, 节次顺序

    @TableField("subject")
    private String subject;

    @TableField("teacher_name")
    private String teacherName;

    @TableField("classroom")
    private String classroom;

    @TableField("start_time")
    private LocalTime startTime;

    @TableField("end_time")
    private LocalTime endTime;

    @TableField("is_active")
    private Boolean isActive;
}